﻿
                            
     
                           AUTOMATIC LOCK UNLOCK CAR

                                   By WTLS




ABOUT THIS TXT:

This txt content:
- Description,
- Known issues and their fixes,
- Installation,
- How to use,
- Changelog,
- Credits,
- Notes.





DESCRIPTION:

This mod makes the player lock and unlock car automatically and without touching 
a button and it has a lot of features.

Features:
- Lock car when exiting it,
- Unlock car when trying to enter it (when you want to get in it),
- Alarm and locking/unlocking sound option (not horn sound) (volume editable),
- Lock and unlock only owned vehicles (the script will consider a vehicle owned 
  by the player if it is saved),
- Save vehicle (and make it persistent) auto or by pressing a button,
- Lock when canceled entering vehicle,
- Lock only if all car doors are closed,
- Lights on when unlocking (optional) (neon lights on when unlocking if it is installed in 
  the car),
- Coming Home (optional) (is when you lock the vehicle it's healights stay on for a few seconds)
- Roll up windows (optional),
- Unsave vehicle key option if you want to save the vehicle in a garage,
- Blinkers (optional),
- Interrior lights when unlocking (optional),
- Up to 20 cars.







KNOWN ISSUES AND FIXES:

- A small issue is that the engine is running if lights or blinkers are on, that's
  a Rockstar issue that has programmed car light to turn on only if the engine
  is running.
> Disable "LIGHTS" and "BLINKERS" and "COMINGHOME" in the ini file.

- Can't reenter vehicles like quadbike or a car without doors.
> Disable "AUTOSAVE" in the ini file and don't press the button of "SAVEKEY" while
  driving this kind of vehicles, save other cars manually.

- All saved and locked vehicles will be unlockable if you reload scripts except the 
  vehicle that the player is in.
> Use one vehicle and you must be in it before reloading script OR avoid reloading
  scripts.






INSTALLATION:

Delete old version,
Put "AutomaticLockUnlock3.dll" file and "AutomaticLockUnlock3.ini" file and 
"NAudio.dll" file and "AutomaticLockUnlock" folder in "scripts" folder.






HOW TO USE:

Enter the car and press the key of SAVEKEY from the ini file to save the car (can
be automatically saved by enabling AUTOSAVE in the ini file but it may cause some
issues).
To lock just leave the vehicle and make sure the doors are closed,
To unlock just enter the vehicle normaly.

Ini file:
AUTOSAVE if enabled, every vehicle that player enters (except bikes, planes, boats 
and helis) will be saved and set as persistent, disable if you don't want every
car you steal to be persistent or you use quadbikes and cars without doors.
SAVEKEY the key to press to save car.
ALARM if enabled, it will be locking/unlocking sound and an alarm will be armed if
the vehicle is locked.
VOLUME the volume of locking/unlocking sound (if ALARM is enabled).
ENABLEUNSAVEKEY if enabled, unsave key functions.
UNSAVEKEY the unsave key that unsave the vehicle if you press it (disables just 
the persistence).
ROLLUPWINDOWS if enabled, all opened windows will be closed while locking vehicle.
COMINGHOME a feature that makes headlights stay on after locking for a few 
seconds.
INTERIORLIGHTS enable/disable interior lights.
UNLOCKINGLIGHTS enable/disable headlights on when unlocking.
BLINKERS enable/disable blinkers that blink once when unlocking and twice when 
locking.
FPS=60 FPS that your game is running with.



CHANGELOG:

3.0.1:
- Fixed sound file location issue,
- Included "NAudio.dll".

3.0:
- Rewrote script,
- Added alarm and locking/unlocking sound,
- Added Roll up windows option,
- Added unsave vehicle key option,
- Added Coming Home option,
- Added compatibility with Coil Features,
- Added option to enable/disable interior lights,
- Added option to enable/disable headlights,
- Added option to enable/disable blinkers,
- Improved lights time,
- Improved hint display,
- Fixed interior lights doesn't turn off,
- Increased max vehicles to 20.

2.0:
- Rewrote the script,
- Fixed can't reenter nodoors vehicles and helis after exiting,
- Fixed lock not owned cars like when you exit a taxi it will be locked,
- Improved indicator lights blinking,
- Added ini file for toggling autosave vehicle and custom key to save vehicle.

1.0:
- first release.





CREDITS:

- Alexander Blade for ScriptHookV,
- Crosire for ScriptHookVDotNet.




NOTES!:

Do NOT redistribute or reupload without getting permission from the author of the
reuploaded file!

EEENNNJJJOOOYYYYYYYYYY  xD


                                       WTLS 